package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface SetmealDishMapper {
//    根据菜品id查询对应套餐id
    List<Long> getDishIdsBySetmealIds(List<Long> dishIds);
//  口味表套餐插入
    void insertBatch(List<SetmealDish> setmealDishes);
//根据id删除对应菜品口味
    void deleteByDishIds(List<Long> ids);
//根据id查询套餐中的菜品
@Select("select * from setmeal_dish where setmeal_id = #{id}")
List<SetmealDish> getBySetmealId(Long id);
}
